package com.ebeitech.auction.bean;

import com.ebeitech.library.util.StringUtil;

import java.io.Serializable;

/**
 * Created by alice on 2017/11/9.
 */
public class AuctionBidder implements Serializable {

	/**
	 * 竞价人Id
	 */
	private String bidderId;

	/**
	 * 竞拍人名
	 */
	private String bidderAuctionCode;

	/**
	 * 竞拍编码
	 */
	private String bidderName;

	/**
	 * 备注
	 */
	private String remark;

	/**
	 * 是否获取竞拍
	 */
	private boolean isGetted;

	/**
	 * 是否是自己
	 */
	private boolean isUs;

	public String getBidderId() {
		return bidderId;
	}

	public void setBidderId(String bidderId) {
		this.bidderId = bidderId;
	}

	public String getBidderAuctionCode() {
		return bidderAuctionCode;
	}

	public void setBidderAuctionCode(String bidderAuctionCode) {
		this.bidderAuctionCode = bidderAuctionCode;
	}

	public String getBidderName() {
		return bidderName;
	}

	public void setBidderName(String bidderName) {
		this.bidderName = bidderName;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public boolean getIsGetted() {
		return isGetted;
	}

	public void setIsGetted(boolean isGetted) {
		this.isGetted = isGetted;
	}

	public boolean getIsUs() {
		return isUs;
	}

	public void setIsUs(boolean isUs) {
		this.isUs = isUs;
	}

	@Override
	public boolean equals(Object o) {
		if (!(o instanceof AuctionBidder)) {
			return false;
		}
		return StringUtil.getDefaultString(bidderAuctionCode).equals(((AuctionBidder) o).getBidderAuctionCode());
	}
}
